-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 188: Add delay samples functionality #210
Conversation
To do before merge:
|
I think this is ready for review. I have created follow up issues. Other thing is that for some reason it's failing a Ubuntu |
The error is here:
You also have a few unrelated to this PR notes and warnings that we should flag and ideally fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Just naming to discuss I think
Added issue about fixing possible check notes #217 |
How did you see this? I can just see:
|
Should we have functionality for getting a "properly" discretised PMF in this package or somewhere else? |
I just looked through the log? What was the fix that made this go away? |
My vote is somewhere else so that i.e epinowcast can use it and then also use it here but we could dev something here and then port out. Note that |
I didn't do anything it just went away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. I think there are a few errors in the handling of newdata
. I know we are doing the new data stuff separately but I think we need a few minimal checks here to be sure it works as is and avoid broken code going to main
Good spot! Agree we should fix these |
I've added tests for this (and indeed they did bring up another code issue! Which is now fixed). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Looks great.
…d predict_dpar alias
* Begin working on delay_samples functionality * Version of delay_samples working with hard coded lognormal * Add documentation and a stop condition if it's not lognormal * Replace use of extract_lognormal_draws with delay_samples * Generalise delay_samples to work for any family * Move delay_samples into fitting-and-postprocessing * Move add_mean_sd into fitting-and-postprocessing * Rename to postprocess.R * Document (and add autoglobals) * Missed this instance of extract_lognormal_draws! * Add option to pass extra things to brms::pp and lint * Fail to update docs! Oops * Add use of validate_newdata * Rename to predict_delay_parameters, add explicit newdata argument, add predict_dpar alias * Correct way to link documentation, and document() * Corrections to predict_delay_parameters and add tests * Move fitting inside tests Former-commit-id: 94bf223791b0a38993981bc689806af5b96a10f8 [formerly bf9c9b6003dcd41b3c788b5d48c652e61644e4c4] Former-commit-id: 946deb6504663aefecfec999f000f4b1002af991
Description
This draft PR will close #188.
Checklist